package deviseMode.create.factory.factorymethod;

import deviseMode.create.factory.IComputer;

/**
 * Created by Tom.
 */
public class FactoryMethodTest {

    public static void main(String[] args) {

        IComputerFactory factory = new XiaomiFactory();
        IComputer computer = factory.work();
        computer.work();

        factory = new HuaweiFactory();
        computer = factory.work();
        computer.work();

    }

}
